package com.holyant.goods.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.stream.Stream;

/**
 * @Author: Ssw
 * @CreateTime: 2023-10-09  16:21
 * @Description:
 */

@AllArgsConstructor
@Getter
public enum GdsGoodsSystemTagEnum {

    CLEAR_STOCK(10,"清库存"),
    ;

    private final Integer code;
    private final String name;


    public static String getNameByCode(Integer code){

        return Stream.of(GdsGoodsSystemTagEnum.values()).filter(e->e.code.equals(code)).findFirst().get().getName();
    }
}
